package svc

import (
	"B/api_B/internal/config"
	"B/renrenzhuB_srv/renrenzhubclient"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config         config.Config
	RenrenzhuB_srv renrenzhubclient.RenrenzhuB
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:         c,
		RenrenzhuB_srv: renrenzhubclient.NewRenrenzhuB(zrpc.MustNewClient(c.RenrenzhuB_srv)),
	}
}
